from survey import AnonymousSurvey

# 定义一个问题，并创建一个表示调查的AnonymousSurvey对象
question = "What language did you first learn to speak?"
language = AnonymousSurvey(question)
language.show_question()
print("Enter 'q' at any time to quit.\n")
while True:
    response = input("language: ")
    if response == "q":
        break
    language.store_answer(response)
print("\nSurvey Results:")
language.show_results()